﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Automata;

namespace Automata
{
    public partial class automata : System.Web.UI.Page
    {
        
        protected void btnEvaluar_Click(object sender, EventArgs e)
        {
            Automata a = new Automata();
            
            resultLabel.Text = a.evalua(txtNumeroEstados.Text,
                                txtAlfabeto.Text,
                                txtEstadoInicial.Text,
                                txtEstadosAceptacion.Text,
                                txtFuncion.Text,
                                txtString.Text);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.ClientScript.IsClientScriptIncludeRegistered("MyScript"))
            {
                Page.ClientScript.RegisterClientScriptInclude("MyScript", "./functions.js");
            }

        }
    }
}